<?php
$section = 'User';
session_start();
?>
<!DOCTYPE html>

<html>
  <head>
    <meta charset="utf-8" />
    <title>Member page</title>
    <link rel="stylesheet" type="text/css" href="../css/reset.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
  </head>
  
  <body>
<?php include('../inc/nav.php'); ?>
<?php include('../inc/header.php'); ?>
    <div id="content">
<?php if(isset($_SESSION['email'])): ?>
      <p>Welcome, <?php echo $_SESSION['email']; ?>!</p>
      <p><a href="changepassword.php">Change password</a></p>
      <p><a href="logout.php">Logout</a></p>
<?php else: ?>
      <p>You must be logged in!</p>
      <p><a href="index.php">Return to index.</a></p>
<?php endif; ?>
    </div><!-- #content -->
<?php include('../inc/footer.php'); ?>
  </body>
</html>
